import cv2
import numpy as np
from time import time

# 方式一：使用imread中的状态值灰度化
# img = cv2.imread("./img/culture1.png",0)

# 方式二：使用cvtColor
img = cv2.imread("./img/culture1.png")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

cv2.imshow("img", gray)
cv2.waitKey(0)
